package NumberTwo;

public class Movie {
    private String name;        //电影名
    private String director;    //导演
    private String protagonist; //主演
    private String label;       //标签

    public Movie() {
    }

    public Movie(String name, String director, String protagonist, String label) {
        this.name = name;
        this.director = director;
        this.protagonist = protagonist;
        this.label = label;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getProtagonist() {
        return protagonist;
    }

    public void setProtagonist(String protagonist) {
        this.protagonist = protagonist;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String toString() {
        return  name+"\n导演："+director+"\n主演"+protagonist+"\n"+label;
    }
}
